/*
 * @Author: Haochen
 * @Date: 2021-12-25 15:41:57
 * @LastEditTime: 2021-12-26 15:56:33
 * @FilePath: \recipes-admin-system\src\api\modules\meals.js
 */

import axios from 'axios';

export default {
  getAllMeal() {
    return axios({
      url: '/meal/getAllMeal',
      method: 'GET',
    });
  },

  addMeal(data) {
    // console.log(data);
    return axios({
      url: '/meal/addMeal',
      method: 'POST',
      data,
    });
  },

  updateMeal(data) {
    return axios({
      url: '/meal/updateMeal',
      method: 'POST',
      data,
    });
  },

  deleteMeal(data) {
    return axios({
      url: '/meal/delMeal',
      method: 'POST',
      data,
    });
  },
};
